/*
 * Copyright (c) 2003-2005
 * XDoclet Team
 * All rights reserved.
 */
package org.xdoclet.plugin.hibernate.properties;

import java.util.Date;

/**
 * Test properties tag
 *
 * @author Anatol Pomozov
 * @hibernate.class table="properties_table"
 * @hibernate.properties name="properties1" unique="false" update="false" insert="false" optimistic-lock="true" node="node"
 * @hibernate.properties name="properties2" update="false" insert="false"
 */
public class Properties {
    private Boolean available;
    private Date changedOn;
    private Date createdOn;
    private Long id;
    private Simple oneSide;
    private String privateName;
    private String publicName;
    private String resource;

    public void setAvailable(Boolean available) {
        this.available = available;
    }

    /**
     * @hibernate.property properties-name="properties2"
     */
    public Boolean getAvailable() {
        return available;
    }

    public void setChangedOn(Date changedOn) {
        this.changedOn = changedOn;
    }

    /**
     * @hibernate.property
     */
    public Date getChangedOn() {
        return changedOn;
    }

    public void setCreatedOn(Date createdOn) {
        this.createdOn = createdOn;
    }

    /**
     * @hibernate.property
     */
    public Date getCreatedOn() {
        return createdOn;
    }

    public void setId(Long id) {
        this.id = id;
    }

    /**
     * @hibernate.id type="glarch" generator-class="glem"
     */
    public Long getId() {
        return id;
    }

    public void setOneSide(Simple oneSide) {
        this.oneSide = oneSide;
    }

    /**
     * @hibernate.many-to-one class="com.infodesire.infobit.dao.AclImpl" properties-name="properties1"
     * @hibernate.column name="one"
     * @hibernate.column name="two"
     */
    public Simple getOneSide() {
        return oneSide;
    }

    public void setPrivateName(String privateName) {
        this.privateName = privateName;
    }

    /**
     * @hibernate.property properties-name="properties1"
     */
    public String getPrivateName() {
        return privateName;
    }

    public void setPublicName(String publicName) {
        this.publicName = publicName;
    }

    /**
     * @hibernate.property properties-name="properties1"
     */
    public String getPublicName() {
        return publicName;
    }

    public void setResource(String resource) {
        this.resource = resource;
    }

    /**
     * @hibernate.property properties-name="properties2"
     */
    public String getResource() {
        return resource;
    }
}